import request from '@/utils/request'

//表格
export const robotTable = (data) => {
  return request({
    url:`/zhangchen/robot/select`,
    method:'post',
    data
  })
} 

// 添加欢迎语
export const robotAdd = (data) => {
  return request({
    url:`/zhangchen/robot`,
    method:'post',
    data
  })
} 

// 添加欢迎语
export const robotEdit = (data) => {
  return request({
    url:`/zhangchen/robot`,
    method:'put',
    data
  })
} 

// 删除欢迎语
export const robotDelete = (id) => {
  return request({
    url:`/zhangchen/robot/${id}`,
    method:'delete',
  })
} 